import { onUnmounted, onMounted } from 'vue';
import E from 'wangeditor';
export const useEditor = (id = "editor") => {
    const editor = new E(`#${id}`);
    onUnmounted(() => {
        editor.destroy()
    })
    return editor
}